package T7;

public class Demo {
    public static void main(String[] args) {
        Computer computer = new Computer();
        KeyBoard k=new KeyBoard();
        Mouse m=new Mouse();

        computer.add( k);
        computer.add(m);
        computer.powerOn();
        System.out.println("------------");
        computer.powerOff();
    }
}
